import request from '@/utils/request'

// 查询单词学习列表
export function listWord(query) {
  return request({
    url: '/tools/word/list',
    method: 'get',
    params: query
  })
}

// 查询单词学习详细
export function getWord(id) {
  return request({
    url: '/tools/word/' + id,
    method: 'get'
  })
}

// 新增单词学习
export function addWord(data) {
  return request({
    url: '/tools/word',
    method: 'post',
    data: data
  })
}

// 修改单词学习
export function updateWord(data) {
  return request({
    url: '/tools/word',
    method: 'put',
    data: data
  })
}

// 删除单词学习
export function delWord(id) {
  return request({
    url: '/tools/word/' + id,
    method: 'delete'
  })
}

//修改多个
export function updateWordList(data) {
   return request({
     url: '/tools/word/updateList',
     method: 'put',
     data: data
   })
}
